package com.hakim.wfb.common.enums;

/**
 *
 */

public enum WalletResponseResultEnum {

    FAIL(0, "失败"),
    SUCCESS(1, "成功"),;

    private int value;
    private String description;

    private WalletResponseResultEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static WalletResponseResultEnum getByValue(int value) {
        WalletResponseResultEnum[] codes = values();
        for (WalletResponseResultEnum each : codes) {
            if (each.value == value) {
                return each;
            }
        }
        return null;
    }
}
